#ifndef MULTIPLEBUTTONFORM_H
#define MULTIPLEBUTTONFORM_H

#include <QWidget>

namespace Ui {
class MultipleButtonForm;
}

class MultipleButtonForm : public QWidget
{
    Q_OBJECT

public:
    explicit MultipleButtonForm(QWidget *parent = nullptr);
    ~MultipleButtonForm();
    void ShowAll();

signals:
    void levelChanged(int level); // 0表示都没选中，1表示level1选中，2表示level2选中，3表示level3选中

private:
    Ui::MultipleButtonForm *ui;

protected:
    virtual void paintEvent(QPaintEvent*event) override;
private slots:
    void on_pushButton_level1_clicked(bool checked);
    void on_pushButton_level2_clicked(bool checked);
    void on_pushButton_level3_clicked(bool checked);
};

#endif // MULTIPLEBUTTONFORM_H
